package com.oshi.oshisysteminfo.controller;

import com.oshi.oshisysteminfo.service.SystemHardware;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *
 * </p>
 * @author liudl
 * @date 2023/6/30
 */
@RestController
@RequestMapping("/monitor")
public class SysInfoController {

    /**
     * 获取服务器监控信息
     * @param
     * @return com.company.api.base.ResultT<com.company.api.server.Server>
     * @author zengxueqi
     * @since 2020/7/14
     */
    @RequestMapping("/server")
    public Object getInfo() {
        SystemHardware sysInfo = new SystemHardware();
        sysInfo.copyTo();
        return sysInfo;
    }

}